// Replication Code for 
// The Impact of Message Source on the Effectiveness of Communications 
// About Climate Change
// Toby Bolsen, Risa Palm, and Justin T. Kingsland 
// Science Communication 2019, Vol. 41(4) 464-487

// Dependent Variables:
// threatnatsec threatenv polmoti suplaws happening sciconsensus hoax


// Estimates Presented in Figure 1 

	// This code will produce the coefficient estimates presented in Figure 1. 
	// Note: The raw outputs contain two-tailed p-values, not the one-tail p-values
	//       reported in the paper.

	
	// National Security Conditions
mvreg threatnatsec threatenv polmoti ///
suplaws happening sciconsensus hoax = i.nsconditions


	// Environmental Conditions
mvreg threatnatsec threatenv polmoti ///
suplaws happening sciconsensus hoax = i.envconditions






// Create Results Presented in Table 2 - Main Effects - Democrats Only
// Note: We present one-tailed p-values in the paper, not the two-tailed p-values
//		 provided in the model outputs below. We obtained the one-tailed p-values
//		 by dividing the two-tailed p-values by 2 (p/2).
foreach var in threatnatsec threatenv polmoti suplaws happening sciconsensus hoax{

	
reg `var' i.nsconditions if dem==1 	// Effects - Nat Sec Conditions vs Nat Sec No Source Baseline - Democrats

reg `var' i.envconditions if dem==1 	// Effects - Env Conditions vs Env No Source Baseline - Democrats

}


// Create Results Presented in Table 3 - Main Effects - Republicans Only
// Note: We present one-tailed p-values in the paper, not the two-tailed p-values
//		 provided in the model outputs below. We obtained the one-tailed p-values
//		 by dividing the two-tailed p-values by 2 (p/2).
foreach var in threatnatsec threatenv polmoti suplaws happening sciconsensus hoax{

	
reg `var' i.nsconditions if rep==1 	// Effects - Nat Sec Conditions vs Nat Sec No Source Baseline - Republicans

reg `var' i.envconditions if rep==1 	// Effects - Env Conditions vs Env No Source Baseline - Republicans

}

